<?php /* Smarty version 2.6.18, created on 2010-03-15 02:27:17
         compiled from admin.tpl */ ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<link href="/app/default/www/styles/styles.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" media="all" href="/cad_js/calendar/css/calendar-win2k-cold-1.css" title="win2k-cold-1" />
<!--[if lte IE 7]>
<link href="/app/default/www/styles/ie.css" rel="stylesheet" type="text/css" />
<![endif]-->
<title><?php echo $this->_tpl_vars['pageTitle']; ?>
</title>
<!-- Zoom Image --> 
<link href="/app/default/www/styles/popbox.css" rel="stylesheet" type="text/css" />
<script src="/app/default/www/scripts/PopBox.js" type="text/javascript"></script>

<script type="text/javascript" src="/app/default/www/scripts/common.js"></script>
<script type="text/javascript" src="/app/default/www/scripts/number-functions.js"></script>
<script type="text/javascript" src="/yui/yahoo/yahoo-min.js"></script> 
<script type="text/javascript" src="/yui/event/event-min.js"></script>
<script type="text/javascript" src="/yui/container/container-min.js"></script> 
<script type="text/javascript" src="/yui/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" src="/yui/connection/connection-min.js"></script>
<script type="text/javascript" src="/yui/element/element-beta-min.js"></script>
 
<!-- Dependencies --> 
<script type="text/javascript" src="/lib/Scripts/Yui/build/yahoo-dom-event/yahoo-dom-event.js"></script> 
<script type="text/javascript" src="/lib/Scripts/Yui/build/element/element-min.js"></script>

<!--FOR CADAjax-->
<script type="text/javascript" src="/cad_js/CADAjax.js"></script>
<script type="text/javascript" src="/cad_js/windows.js"></script>
<script type="text/javascript" src="/cad_js/forms.js"></script>

<script src="/app/default/www/scripts/admin.js" type="text/javascript"></script>

<!-- Calendar -->
<link rel="stylesheet" type="text/css" href="/lib/Scripts/Yui/build/calendar/assets/skins/sam/calendar.css" />
<script type="text/javascript" src="/lib/Scripts/Yui/build/calendar/calendar-min.js"></script> 
<script type="text/javascript" src="/app/default/www/scripts/ekimo_calendar.js"></script>

<!-- Pop up -->
<link rel="stylesheet" type="text/css" href="/app/default/www/styles/popup.css"/>
<script type="text/javascript" src="/app/default/www/scripts/csspopup.js"></script>
<script type="text/javascript" src="/app/default/www/scripts/ekimo_popup.js"></script>
<script type="text/javascript" src="/app/default/www/scripts/ekimo_drag_region.js"></script>

<script type="text/javascript" src="/cad_js/calendar/calendar-min.js"></script>
<script type="text/javascript" src="/cad_js/calendar/lang/calendar-en.js"></script>
<script type="text/javascript" src="/cad_js/calendar/calendar-setup.js"></script>

<!--JQuery -->
<script type="text/javascript" src="/app/default/www/scripts/jquery.min.js"></script> 

<link rel="stylesheet" type="text/css" href="/yui/fonts/fonts-min.css" />
<link rel="stylesheet" type="text/css" href="/yui/resize/assets/skins/sam/resize.css" />
<script type="text/javascript" src="/yui/dragdrop/dragdrop-min.js"></script>
<script type="text/javascript" src="/yui/resize/resize-min.js"></script>
<script type="text/javascript" src="/yui/dragdrop/dragdrop-min.js"></script>

 <!--FOR CADPaginator-->
<script type="text/javascript" src="/yui/paginator/paginator-min.js"></script> 
<script type="text/javascript" src="/yui/connection/connection-min.js"></script>
<script type="text/javascript" src="/cad_js/CADPaginator.js"></script>
<script type="text/javascript" src="/yui/element/element-beta-min.js"></script>

<script type="text/javascript" src="/app/default/www/scripts/paging.js"></script>

<!-- Core + Skin CSS --> 
<link rel="stylesheet" type="text/css" href="/yui/paginator/assets/skins/sam/paginator.css"> 
<script type="text/javascript" src="/yui/paginator/paginator-min.js"></script> 

<script type="text/javascript"><!--//--><![CDATA[//><!--
<?php echo '
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;
'; ?>

//--><!]]></script>
</head>
<body class="yui-skin-sam">
<div id="loading" style="position: absolute; left: 430px; top: 400px; z-index: 99; margin: auto; visibility: hidden">
		<img src="/app/default/www/images/loading.gif" />
</div>

	<div id="f_wrap">
		<div style="float:right;margin:10px 10px 0 10px;color:white">Welcome <?php echo $this->_tpl_vars['username']; ?>
&nbsp;|&nbsp;<a href="javascript:void(0);" style="color:white" onclick="location.href='/auth/logout/'">sign out</a></div>

		<div id="header">

	        <div id="sub_header">
	        	<img src="/app/default/www/images/bg_sub_header.jpg" width="1000" height="120" alt="[]" />
			</div>
			<div id="navi">
        		<ul id="nav">
					<?php $this->assign('menuArray', $this->_tpl_vars['menuUtility']->generateMenu(27,$this->_tpl_vars['viewType'],$this->_tpl_vars['viewType'])); ?>

					<?php $_from = $this->_tpl_vars['menuArray']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['menuItem']):
?>
					<li><?php if ($this->_tpl_vars['menuItem']['visibility'] == 1): ?><a href="javascript:void(0);" onclick="selectThisMenu('<?php echo $this->_tpl_vars['menuItem']['code']; ?>
','<?php echo $this->_tpl_vars['menuItem']['description']; ?>
');"><span><?php echo $this->_tpl_vars['menuItem']['value']; ?>
</span></a><?php else: ?><?php echo $this->_tpl_vars['menuItem']['value']; ?>
<?php endif; ?>
						<?php $this->assign('submenuArray', $this->_tpl_vars['menuUtility']->generateMenu($this->_tpl_vars['menuItem']['id'],0,1)); ?>
						<?php if ($this->_tpl_vars['submenuArray']): ?>
							<ul>
							<?php $_from = $this->_tpl_vars['submenuArray']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['subItem']):
?>
									<li><?php if ($this->_tpl_vars['subItem']['visibility'] == 1): ?><a href="javascript:void(0);"  onclick="selectThisMenu('<?php echo $this->_tpl_vars['subItem']['code']; ?>
','<?php echo $this->_tpl_vars['subItem']['description']; ?>
');"><?php echo $this->_tpl_vars['subItem']['value']; ?>
</a><?php else: ?><?php echo $this->_tpl_vars['subItem']['value']; ?>
<?php endif; ?></li>
							<?php endforeach; endif; unset($_from); ?>
									<li><img src="/app/default/www/images/btm_ul.jpg" width="210" height="8" alt="_" /></li> 
							</ul>
						<?php endif; ?>
					</li>
					<?php endforeach; endif; unset($_from); ?>	
          		</ul>
        </div><!-- nav -->
    </div><!-- header -->  
	<div id="content">
		<div id="top"><img src="/app/default/www/images/top_left.jpg" /></div>
		<?php echo $this->_tpl_vars['template_content']; ?>

		 <div id="btm"><img src="/app/default/www/images/btm_left.jpg"  alt="_" /></div>
	</div>	

</body>
<form name="mainForm">
	<input type="hidden" name="actionTpl" value="" id="actionTpl">
	<input type="hidden" name="prevId" value="" id="prevId">
</form>

</html>
<script language="javascript">
<?php echo '
	function openCurrentTab(){
		action = document.getElementById(\'actionTpl\').value ;
		changeTabView(action);
	}
	
	function selectThisMenu(id,action){
		
		document.getElementById(\'main_content\').innerHTML = \'\';
		//var prevId = document.getElementById(\'prevId\').value;
		//if(prevId) {
		//	document.getElementById(prevId).className = "";
		//}
		//document.getElementById(id).className = "selected";
		//document.getElementById("actionTpl").value = action;
		//document.getElementById("prevId").value = id;
		changeTabView(action);
	}
	
	function changeTabView(action){
		document.getElementById(\'actionTpl\').value = action;
		doajaxAction(action,0,\'main_content\');
	}
'; ?>

</script>